package com.reremouse.rerebbs.model;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "rerebbs_message")
public class BbsMessage
        implements Serializable {
    @Id
    @Column(name = "id", unique = true, nullable = false, length = 40)
    long id = System.nanoTime();
    @Column(name = "title")
    String title;
    @Column(name = "content")
    String content;
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "receiver_id")
    BbsUser receiver;
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "sender_id")
    BbsUser sender;
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "gen_time", nullable = false)
    Date genTime = new Date();
    @Column(name = "readed")
    boolean readed = false;
    @Column(name = "message_type")
    String messageType;
    @Column(name = "receiver_mark_del")
    boolean receiverMarkDel = false;
    @Column(name = "sender_mark_del")
    boolean senderMarkDel = false;

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getGenTime() {
        return this.genTime;
    }

    public void setGenTime(Date genTime) {
        this.genTime = genTime;
    }

    public long getId() {
        return this.id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public boolean isReaded() {
        return this.readed;
    }

    public void setReaded(boolean readed) {
        this.readed = readed;
    }

    public BbsUser getReceiver() {
        return this.receiver;
    }

    public void setReceiver(BbsUser receiver) {
        this.receiver = receiver;
    }

    public BbsUser getSender() {
        return this.sender;
    }

    public void setSender(BbsUser sender) {
        this.sender = sender;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getMessageType() {
        return this.messageType;
    }

    public void setMessageType(String messageType) {
        this.messageType = messageType;
    }

    public boolean isReceiverMarkDel() {
        return this.receiverMarkDel;
    }

    public void setReceiverMarkDel(boolean receiverMarkDel) {
        this.receiverMarkDel = receiverMarkDel;
    }

    public boolean isSenderMarkDel() {
        return this.senderMarkDel;
    }

    public void setSenderMarkDel(boolean senderMarkDel) {
        this.senderMarkDel = senderMarkDel;
    }
}



/* Location:           F:\jsp源码\蝙蝠论坛系统\rerebbs\WEB-INF\classes\

 * Qualified Name:     com.reremouse.rerebbs.model.BbsMessage

 * JD-Core Version:    0.7.0.1

 */